package com.neusoft.my12306.controller;


import com.neusoft.my12306.common.res.CommonResult;
import com.neusoft.my12306.entity.Ticket;
import com.neusoft.my12306.service.IPassengerService;
import com.neusoft.my12306.service.ITicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 葛彬
 * @since 2023-07-21
 */
@CrossOrigin
@RestController
@RequestMapping("/passenger")
public class PassengerController {

    @Autowired
    IPassengerService passengerService;

    @PostMapping("/query")
    public CommonResult queryPassenger(@RequestParam String userid) {
        return passengerService.queryPassenger(userid);
    }

}
